<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/23
 * Time: 10:34
 */
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller {

    public function _initialize(){
        if(!session('?user_id')){
            $this->redirect('Public/login');
        }
    }
}